docs: Update examples of matching key bindings
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 9 May 2016 11:45:34 +0000 (12:45 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 9 May 2016 11:45:34 +0000 (12:45 +0100)
The selector for matching GtkEntry has changed to `entry` after 3.20.

https://bugzilla.gnome.org/show_bug.cgi?id=766166

gtk/gtkbindings.c

index f3c3a730f584f9bbad36a16708275d2a6fc9d004..54515d3e0deeb6930a48a5682abd59b31914f3ca 100644 (file)
  * movement occurs in 3-character steps), the following binding can be
  * used:
  *
- * |[
+ * |[ <!-- language="CSS" -->
  * @binding-set MoveCursor3
  * {
  *   bind "<Control>Right" { "move-cursor" (visual-positions, 3, 0) };
  *   bind "<Control>Left" { "move-cursor" (visual-positions, -3, 0) };
  * }
- * GtkEntry
+ *
+ * entry
  * {
  *   -gtk-key-bindings: MoveCursor3;
  * }
  * works as expected. The same mechanism can not be used to “unbind”
  * existing bindings, however.
  *
- * |[
+ * |[ <!-- language="CSS" -->
  * @binding-set MoveCursor3
  * {
  *   bind "<Control>Right" {  };
  *   bind "<Control>Left" {  };
  * }
- * GtkEntry
+ *
+ * entry
  * {
  *   -gtk-key-bindings: MoveCursor3;
  * }
  * from activating its default bindings, the “unbind” keyword can be used
  * like this:
  *
- * |[
+ * |[ <!-- language="CSS" -->
  * @binding-set MoveCursor3
  * {
  *   unbind "<Control>Right";
  *   unbind "<Control>Left";
  * }
- * GtkEntry
+ *
+ * entry
  * {
  *   -gtk-key-bindings: MoveCursor3;
  * }